package com.crazy.common.ztree;

import java.io.Serializable;

/**
 * JQuery zTree 树节点
 * 
 * @author zhang weiwei
 * @since 2013-9-18下午4:16:26
 */
@SuppressWarnings("serial")
public class TreeNode implements Serializable {
	private String id;// 节点数据中保存唯一标识的属性名称
	private String pId;// 节点数据中保存其父节点唯一标识的属性名称
	private String name;// 节点名称
	private Boolean checked;// 节点的 checkBox / radio 的 勾选状态
	private Boolean open;// 记录 treeNode 节点的 展开 / 折叠 状态
	private Boolean chkDisabled;// 设置节点的 checkbox / radio 是否禁用
	private String url;// 节点链接的目标 URL
	private String target;// 设置点击节点后在何处打开 url
	private String parentId;// 同pId

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
		this.parentId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public Boolean getChkDisabled() {
		return chkDisabled;
	}

	public void setChkDisabled(Boolean chkDisabled) {
		this.chkDisabled = chkDisabled;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getParentId() {
		return parentId;
	}
}
